//
// Created by yinlijun on 17-10-1.
//

#ifndef ROCKYSOCKET_WRITE_DATA_RECORD_H
#define ROCKYSOCKET_WRITE_DATA_RECORD_H

struct WriteDataRecord;
typedef struct WriteDataRecord WriteDataRecord;
WriteDataRecord* write_data_record_create(int fd, void* data, size_t data_size);
int write_data_record_write(WriteDataRecord *thiz);
int write_data_record_finished(WriteDataRecord *thiz);
void* write_data_record_get_data(WriteDataRecord* thiz);
size_t write_data_record_get_size(WriteDataRecord* thiz);
size_t write_data_record_get_written(WriteDataRecord* thiz);
void write_data_record_destroy(WriteDataRecord* thiz);

#endif //ROCKYSOCKET_WRITE_DATA_RECORD_H
